package com.tacc.tyun.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 微信-账号信息
 */
@Table(name = "wx_account")
public class WxAccount {
    @Id
    private String id;
    private String appid;
    private String appsecret;
    private String token;
    private String url;//微信对接地址
    @Column(name = "accessToken")
    private String accessToken;//accessToken值
    @Column(name = "accessTokenEndTime")
    private Date accessTokenEndTime;// 凭证最后失效时间
    @Column(name = "expiresIn")
    private int expiresIn;// 凭证有效时间，单位：秒
    @Column(name="createTime")
    private Date createTime;
    @Column(name="baseURL")
    private String baseURL;//项目基础地址

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getBaseURL() {
        return baseURL;
    }

    public void setBaseURL(String baseURL) {
        this.baseURL = baseURL;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getAccessTokenEndTime() {
        return accessTokenEndTime;
    }

    public void setAccessTokenEndTime(Date accessTokenEndTime) {
        this.accessTokenEndTime = accessTokenEndTime;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
